-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[scheduler][styled] Allow to have nested resources #20108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Deploy preview: https://deploy-preview-20108--material-ui-x.netlify.app/ Bundle size report
|
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
packages/x-scheduler-headless/src/scheduler-selectors/schedulerSelectors.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/scheduler-selectors/schedulerSelectors.ts
Outdated
Show resolved
Hide resolved
...adless/src/use-event-occurrences-grouped-by-resource/useEventOccurencesGroupedByResource.tsx
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/utils/SchedulerStore/SchedulerStore.types.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/utils/SchedulerStore/SchedulerStore.types.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/utils/SchedulerStore/SchedulerStore.utils.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler/src/internals/components/resource-legend/ResourceLegend.tsx
Outdated
Show resolved
Hide resolved
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
packages/x-scheduler-headless/src/scheduler-selectors/schedulerResourceSelectors.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/scheduler-selectors/schedulerResourceSelectors.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/scheduler-selectors/schedulerResourceSelectors.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/scheduler-selectors/schedulerResourceSelectors.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/scheduler-selectors/schedulerResourceSelectors.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/scheduler-selectors/schedulerResourceSelectors.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/scheduler-selectors/schedulerResourceSelectors.ts
Outdated
Show resolved
Hide resolved
packages/x-scheduler-headless/src/scheduler-selectors/schedulerResourceSelectors.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Flavien DELANGLE <[email protected]> Signed-off-by: Nora <[email protected]>
flaviendelangle
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last feedback and we are good to go 👍
| if (children) { | ||
| for (const child of children) { | ||
| if (!resourceChildrenIdLookup.get(processedResource.id)) { | ||
| resourceChildrenIdLookup.set(processedResource.id, []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should be able to generate resourceChildrenIdLookup in a selector instead of storing it in the state. It' just derived from processedResourceLookup right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, not sure we can 🤔 i separated the children ids resourceChildrenIdLookup and processedResourceLookup only keeps the resource data without its children nested 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK we can keep it as is and refacto later if needs be 👍
This reverts commit beea7d6.
Closes #19494